package com.sservice.model.dao;

import com.sservice.model.entity.LadingOrder;
import com.sservice.model.vo.LadingOrderVo;

import java.util.List;

public interface LadingOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LadingOrder record);

    int insertSelective(LadingOrder record);

    LadingOrder selectByPrimaryKey(Integer id);

    /**
     * @param ladingId 提单ID
     * @return
     */
    List<LadingOrder> selectByLadingId(String ladingId);

    int updateByPrimaryKeySelective(LadingOrder record);

    int updateByPrimaryKey(LadingOrder record);

    /***
     * 获取车号类型提货单
     * @param record
     * @return
     */
    LadingOrder queryPurchaseBill(LadingOrder record);

    /**
     * 批量增加
     *
     * @param list
     * @return
     */
    int addBatch(List<LadingOrder> list);

    /**
     * 根据订单ID获取提货单
     *
     * @param orderId
     * @return
     */
    List<LadingOrder> selectByOrderId(String orderId);

    List<LadingOrderVo> queryByPage(LadingOrderVo lov);

    int queryByCount(LadingOrderVo lov);

    /**
     * 根据订单ID查询 提单
     *
     * @param orderId
     * @return
     */
    List<LadingOrderVo> queryOrderBill(LadingOrder orderId);

}